Skip to content

Use ConfigurationCompat for locale access in I18nManagerModule#55663

Closed
alanleedev wants to merge 1 commit intofacebook:mainfrom
alanleedev:export-D93943818
Closed

Use ConfigurationCompat for locale access in I18nManagerModule#55663
alanleedev wants to merge 1 commit intofacebook:mainfrom
alanleedev:export-D93943818

Conversation

@alanleedev
Copy link
Contributor

Summary:
Replace the direct configuration.locales[0] call with ConfigurationCompat.getLocales() from AndroidX, which handles the API level check internally. Falls back to Locale.getDefault() if the locale list is empty.

Changelog: [Internal]


Differential Revision: D93943818

Summary:
Replace the direct `configuration.locales[0]` call with `ConfigurationCompat.getLocales()` from AndroidX, which handles the API level check internally. Falls back to `Locale.getDefault()` if the locale list is empty.

Changelog: [Internal]

----

Differential Revision: D93943818
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 21, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 21, 2026

@alanleedev has exported this pull request. If you are a Meta employee, you can view the originating Diff in D93943818.

@meta-codesync
Copy link

meta-codesync bot commented Feb 23, 2026

This pull request has been merged in cd4a2bd.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @alanleedev in cd4a2bd

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants